package com.hilinos.base.user.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author hilinos
 * @since 2022-04-18
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("机构表")
@TableName("org_info")
public class OrgInfoPoJo implements Cloneable, Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("机构ID")
    @TableId("org_id")
    private String orgId;
    @ApiModelProperty("平台ID")
    private String appid;
    @ApiModelProperty("机构名称")
    @TableField("org_name")
    private String orgName;
    @ApiModelProperty("父机构ID")
    @TableField("p_org_id")
    private String pOrgId;
    @ApiModelProperty("父机构名称")
    @TableField("p_org_name")
    private String pOrgName;
    @ApiModelProperty("所有父机构节点;包含所有父机构节点，英文逗号隔开")
    @TableField("p_org_nodes")
    private String pOrgNodes;
    @ApiModelProperty("创建时间")
    @TableField("creator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;
    @ApiModelProperty("更新时间")
    @TableField("updator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatorTime;
}